//
//  KLGood.m
//  used
//
//  Created by xalo on 16/7/16.
//  Copyright © 2016年 王凯. All rights reserved.
//

#import "KLGood.h"
#import <MJExtension.h>

@implementation KLGood


+ (instancetype)goodModelWithDict:(NSDictionary *)dict {
    
    KLGood *good = [[self alloc] init];
    [good setValuesForKeysWithDictionary:dict];
    return good;
}

- (void)setValue:(id)value forKey:(NSString *)key {
    
    if ([key isEqualToString:@"id"]) {
        [self setValue:value forKey:@"ID"];
    }else {
        [super setValue:value forKey:key];
    }
    if ([key isEqualToString:@"description"]) {
        [self setValue:value forKey:@"desc"];
    }else {
        [super setValue:value forKey:key];
    }
    
    if ([key isEqualToString:@"sellername"]) {
        [self setValue:value forKey:@"sallername"];
    }else {
        [super setValue:value forKey:key];
    }
    
    if ([key isEqualToString:@"title"]) {
        [self setValue:value forKey:@"sallername"];
    }else {
        [super setValue:value forKey:key];
    }
    
    if ([key isEqualToString:@"prov"]) {
        [self setValue:value forKey:@"province"];
    }else {
        [super setValue:value forKey:key];
    }
    
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
   
}






@end
